package back_0413.lbservice;

/**
 * Auth: bruce-sha
 * Date: 2015/4/8
 */
public class PathRouter {

    String path;

    public void path(String path, Handler handler) {

        handler.handle(path);
    }


    public static interface Handler {
        void handle(String path);
    }

    public static void main(String[] args) {
        PathRouter pr = new PathRouter();

        String p = "1234";

        pr.path("h", path -> {
            System.out.println("hello " + path);
        });
    }
}
